<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基于 全局导出 规范的 Vue 应用</title>
    <script src="https://unpkg.com/vue@3.5.22/dist/vue.global.js"></script>
</head>
<body>
    <div id="app" class="app">{{ msg }}</div>
    <script>
        const {createApp} = Vue

        let app = createApp({
            setup(){
                let msg = "Hello, World!"
                return {msg}
            }
        })

        // 使用 类选择器
        app.mount(".app")
    </script>
</body>
</html>